package com.assjirc.commands;

import com.assjirc.annotations.Command;
import com.assjirc.frames.GUI;
import com.assjirc.irc.IrcManager;

@Command("part")
public class Part implements Executable {

	@Override
	public void execute(String params, GUI gui) {
		gui.partChannel(IrcManager.currentChannel.getName(), params);
	}

	@Override
	public String getDetailedHelp(String... params) {
		return getSimpleHelp() + ", syntax: /part [part message]";
	}

	@Override
	public String getSimpleHelp() {
		return "parts the current channel";
	}

}
